import React,{Component}  from 'react';
import { browserHistory,Router,Route,useRouterHistory,IndexRoute,IndexRedirect} from 'react-router';
import HomePage from '../containers/HomePage';
import Login from '../containers/Login';
import CreateService from '../containers/CreateService';

interface Props {
    history:any;
}

class RouterConfig extends  React.Component<Props, {}>{
    render(){
        return (
            <Router history={this.props.history}>
                <Route path="/" component={Login}/>
                <Route path="/home" component={HomePage} />
                <Route path="/create" component={CreateService}/>
                    {/* <Route path="*" component={Error} /> */}
            </Router>
        );
    }
}
export default RouterConfig;
